#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	string s; cin >> s;
	cout << s.substr(0, s.size() / 2) << endl << s.substr(s.size() / 2, s.size() / 2) << endl;
	return 0;
}